package priv.yiyuan.example.design;

/**
 * 文本框
 * <p>
 * 桥接模式(扩展抽象部分)/组合模式(叶子)
 */
public class Text extends Shape {

    private String content;

    public Text(Renderer renderer, String content) {
        super(renderer);
        this.content = content;
    }

    @Override
    public void draw() {
        renderer.renderText(content);
    }
}
